﻿@using AdverseEventReportSystem.BLL.ServiceReference1;
@{
    var position = ViewBag.Position as tb_Position;
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <link href="~/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="~/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <link href="~/lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/css/common.css" rel="stylesheet" type="text/css" />
    <script src="~/lib/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="~/lib/ligerUI/js/ligerui.all.js"></script>
    <script src="~/Scripts/common.js"></script>
</head>
<body>
    <div style="margin:10px 0px;">
        <table class="gridtable">
            <tr>
                <td style="text-align:right; width:100px;">
                    职称类型：
                </td>
                <td>
                    <select id="typeId">
                        <option value="00" @(position.TypeId == "00" || position.Id == 0 ? "selected" : "")>护理部</option>
                        <option value="01" @(position.TypeId == "01" ? "selected" : "")>医务部</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    职称名称：
                </td>
                <td>
                    <input type="text" id="txtPositionTitle" class="l-text" style="width:200px;" value="@(position.PositionTitle)" /><font style="color:red;">&nbsp;*</font>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    职称编码：
                </td>
                <td>
                    <input type="text" id="txtPositionCode" class="l-text" style="width:200px;" value="@(position.PositionCode)" /><font style="color:red;">&nbsp;*</font>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    排序：
                </td>
                <td>
                    <input type="text" id="txtSort" class="l-text" style="width:200px;" value="@(position.Sort ?? 0)" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center;padding-top:10px;">
                    <input id="btnSubmit" type="button" value="确定" class="l-button" onclick="save()" />&nbsp;&nbsp;&nbsp;
                    <input id="btnCancel" type="button" value="取消" class="l-button-cancel" onclick="closeDialog()" />
                </td>
            </tr>
            <tr></tr>
        </table>
        <input type="hidden" id="hdnPositionId" value="@(position.Id)" />
    </div>
</body>
</html>
@{
    <script src="~/Areas/Sysbase/Scripts/EditPosition.js"></script>
}
